package com.hyk.Login;

import com.hyk.Service.UserService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserController {

    @Resource
    private UserService userService;

    public void login(String username, String password){

        if (userService.doLogin(username,password)){
            System.out.println("登录成功");
        }
        else{
            System.out.println("用户名或密码错误");
        }

    }

}
